package com.fsc.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fsc.entity.domain.ChatFriend;
import com.fsc.entity.vo.PersonContactListVO;
import com.fsc.entity.vo.PersonWaitAddListVO;
import com.fsc.service.ChatFriendService;
import com.fsc.mapper.ChatFriendMapper;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 86183
* @description 针对表【chat_friend(通讯录表)】的数据库操作Service实现
* @createDate 2024-06-14 11:20:07
*/
@Service
public class ChatFriendServiceImpl extends ServiceImpl<ChatFriendMapper, ChatFriend>
    implements ChatFriendService{
    @Resource
    private ChatFriendMapper chatFriendMapper;
    @Override
    public List<PersonContactListVO> getContractList(Integer userId) {
        return chatFriendMapper.getContractList(userId);
    }

    @Override
    public List<PersonWaitAddListVO> getWaitAddList(Integer id) {
        return chatFriendMapper.getWaitAddList(id);
    }

}




